<!DOCTYPE html>
<html>
<head>
  <title>多人对战游戏</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="shortcut icon" href="/assets/icon64.png">
  <meta property="description" content="A complete example multiplayer .io web game implemented from scratch. Built with Javascript and Node.js. Open source on Github.">
  <meta property="og:title" content="An example .io game">
  <meta property="og:description" content="A complete example multiplayer .io web game implemented from scratch. Built with Javascript and Node.js. Open source on Github.">
  <meta property="og:image" content="/assets/icon1200.png">
  <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-58664433-3"></script> -->
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-58664433-3');
  </script>
</head>
<body>
  <canvas id="game-canvas"></canvas>
  <div id="play-menu" class="hidden">
    <h1>多人对战游戏</h1>
    <p>
      存活到底，击败对手！
      <br />
      用鼠标控制移动。
    </p>
    <hr />
    <p>
      <!-- <br /> -->
      查看教程： <a href="https://victorzhou.com/blog/build-an-io-game-part-1/" target="_blank">如何制作一个 .io 游戏</a>.
      <br />
      项目源码： <a href="https://github.com/vzhou842/example-.io-game" target="_blank">Github</a>.
      <br />
      原作者： <a href="https://victorzhou.com" target="_blank">Victor Zhou</a>.
      <br /><a href="https://github.com/Firfr/mp_game" target="_blank">镜像汉化仓库</a>.
    </p>
    <hr />
    <input type="text" id="username-input" placeholder="用户名" />
    <button id="play-button">开始</button>
  </div>
  <div id="leaderboard" class="hidden">
    <table>
      <tr>
        <th>用户名</th>
        <th>得分</th>
      </tr>
      <tr><td></td><td></td></tr>
      <tr><td></td><td></td></tr>
      <tr><td></td><td></td></tr>
      <tr><td></td><td></td></tr>
      <tr><td></td><td></td></tr>
    </table>
  </div>
  <div id="disconnect-modal" class="hidden">
    <div>
      <h2>已与服务器断开连接</h2>
      <hr />
      <button id="reconnect-button">重新连接</button>
    </div>
  </div>
</body>
</html>
